package javabase.schoolwork.day6_6;

/**
 * @author fance
 * @date 18-6-6 下午3:19
 */
class Demo {
    public <T> T fun(T t) {
        return t;
    }
}
public class GenDemo8 {
    public static void main(String[] args) {
        Demo demo = new Demo();
        String s = demo.fun("李小龙");
        int i = demo.fun(30);
        System.out.println(s);
        System.out.println(i);
    }
}
